<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//学号
			var a = 1;
			//姓名
			var b = "张三";
			//年龄
			var c = 20;

			//----------------定义数组:方式一:字面量---------------------------------------
			var arr = []; //空数组
			var arr2 = [2, "李四", 30]; //有初始化数据的数组
			
			//----------------存(下标，从0开始)---------------------------------------
			arr[0] = 1;
			arr[1] = "张三";
			arr[2] = 20;

			arr2[1] = "李思思";
			//----------------取(下标，从0开始)---------------------------------------
			console.log(arr[0]);
			console.log(arr[1]);
			console.log(arr[2]);

			console.log(arr2[1]);
		</script>
	</head>
	<body>
	</body>
</html>
